	{include file="common/header.tpl"}
<body>
<div id="wrapper">
	{include file="common/toptab.tpl"}
	{if $smarty.get.sub eq "translator"}
		{assign var="multilanguage" value="current"}
    {elseif $smarty.get.sub eq "lang"}    
    	{assign var="language" value="current"}
	{else}
        {assign var="setting" value="current"}
	{/if}
    <script src="../view/admin/js/multilanguage.js" type="text/javascript"></script>
    <div id="tabs4">
		    {if $smarty.session.user_isadmin eq "1"}
            	<li id="{$setting}"><a href="?module={$smarty.get.module}&sub=setting"><span>{TranslateTag}B_LABEL_SETTING_LANGUAGE{/TranslateTag}</span></a></li>
				<li id="{$language}"><a href="?module={$smarty.get.module}&sub=lang"><span>{TranslateTag}B_LABEL_LANGUAGES{/TranslateTag}</span></a></li>
				<li id="{$multilanguage}"><a href="?module={$smarty.get.module}&sub=translator"><span>{TranslateTag}B_LABEL_TRANSLATOR{/TranslateTag}</span></a></li>
		    {/if}
            <div class="clear"></div>    
	</div>
	
    {if $smarty.get.sub eq "translator"}
        {if $smarty.get.sub eq "edit_translator"}
            {include file="BgcmsMultiLanguage/edit_multilanguage.tpl"}
        {else}
            {include file="BgcmsMultiLanguage/list_multilanguage.tpl"}
        {/if}
    {elseif $smarty.get.sub eq "lang"}
        {if $smarty.session.user_isadmin eq "1"}
            {if $smarty.get.act eq "edit_lang"}
                {include file="BgcmsMultiLanguage/edit.tpl"} 
            {else}
                {include file="BgcmsMultiLanguage/list_language.tpl"}     
            {/if}
        {else}
        	{if $smarty.get.act eq "edit_translator"}
            	{include file="BgcmsMultiLanguage/edit_multilanguage.tpl"}
            {else}
                {include file="BgcmsMultiLanguage/list_multilanguage.tpl"}
            {/if}	    
        {/if}    
    {else}
        {include file="BgcmsMultiLanguage/setting_lang.tpl"}	    
    {/if}
</div>      
</body>
</html>